package com.card.framework.security;
import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
public class SecurityUser extends org.springframework.security.core.userdetails.User {
	private static final long serialVersionUID = 4992405266410968905L;
	public SecurityUser(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities,String menu,String roleName) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
		this.menu = menu;
		this.roleName = roleName;
		// TODO Auto-generated constructor stub
	}
	public String getRoleName() {
		return roleName;
	}
	final private String menu;
	public String getMenu() {
		return menu;
	}
	final private String roleName;
}
